package cn.itcast.netty.chat;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

//自定义一个客户端业务处理类
public class ChatClientHandler extends SimpleChannelInboundHandler<String> {
    @Override//接受广播过来的数据
    protected void channelRead0(ChannelHandlerContext ctx, String s) {
        System.out.println(s.trim());
    }
}
